package com.foreverwin.mes.so.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Syngna
 * @since 2020-02-04
 */
@TableName("Z_RECIPE")
public class Recipe extends Model<Recipe> {

    private static final long serialVersionUID = 1L;

   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
   @TableField("SITE")
   private String site;
   @TableField("RECIPE")
   private String recipe;
   @TableField("REVISION")
   private String revision;
   @TableField("USED")
   private String used;
   @TableField("CURRENT_REVISION")
   private String currentRevision;
   @TableField("CREATOR")
   private String creator;
   @TableField("UPDATER")
   private String updater;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;

   @TableField(exist = false)
   private List<RecipeParam> recipeParamList;

   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getRecipe() {
      return recipe;
   }

   public void setRecipe(String recipe) {
      this.recipe = recipe;
   }

   public String getRevision() {
      return revision;
   }

   public void setRevision(String revision) {
      this.revision = revision;
   }

   public String getUsed() {
      return used;
   }

   public void setUsed(String used) {
      this.used = used;
   }

   public String getCurrentRevision() {
      return currentRevision;
   }

   public void setCurrentRevision(String currentRevision) {
      this.currentRevision = currentRevision;
   }

   public String getCreator() {
      return creator;
   }

   public void setCreator(String creator) {
      this.creator = creator;
   }

   public String getUpdater() {
      return updater;
   }

   public void setUpdater(String updater) {
      this.updater = updater;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public List<RecipeParam> getRecipeParamList() {
      return recipeParamList;
   }

   public void setRecipeParamList(List<RecipeParam> recipeParamList) {
      this.recipeParamList = recipeParamList;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String RECIPE = "RECIPE";

   public static final String REVISION = "REVISION";

   public static final String USED = "USED";

   public static final String CURRENT_REVISION = "CURRENT_REVISION";

   public static final String CREATOR = "CREATOR";

   public static final String UPDATER = "UPDATER";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "Recipe{" +
         "handle = " + handle +
         ", site = " + site +
         ", recipe = " + recipe +
         ", revision = " + revision +
         ", used = " + used +
         ", currentRevision = " + currentRevision +
         ", creator = " + creator +
         ", updater = " + updater +
         ", createdDateTime = " + createdDateTime +
         ", modifiedDateTime = " + modifiedDateTime +
         "}";
   }
}